package top.mcwebsite.playandroid.business.user_article.impl.ui

import androidx.compose.foundation.clickable
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.Spacer
import androidx.compose.foundation.layout.fillMaxHeight
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.size
import androidx.compose.foundation.layout.width
import androidx.compose.material3.Divider
import androidx.compose.material3.LocalContentColor
import androidx.compose.material3.MaterialTheme
import androidx.compose.material3.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.Modifier
import androidx.compose.ui.res.stringResource
import androidx.compose.ui.text.style.LineBreak
import androidx.compose.ui.text.style.TextOverflow
import androidx.compose.ui.unit.dp
import top.mcwebsite.playandroid.common.uiWidget.skeleton

@Composable
fun SkeletonItem() {
    Column(
        modifier = Modifier
            .padding(vertical = 5.dp, horizontal = 12.dp)
    ) {
        Text(
            text = "占",
            style = MaterialTheme.typography.titleMedium,
            modifier = Modifier
                .fillMaxWidth()
                .skeleton(true)
        )
        Row(
            modifier = Modifier.padding(top = 3.dp)
        ) {
            Text(
                text = "占",
                style = MaterialTheme.typography.labelMedium,
                color = LocalContentColor.current.copy(0.7f),
                modifier = Modifier
                    .width(100.dp)
                    .skeleton(true)
            )
            Spacer(modifier = Modifier.width(5.dp))
            Text(
                text = "占",
                style = MaterialTheme.typography.labelMedium,
                color = LocalContentColor.current.copy(0.7f),
                modifier = Modifier.width(100.dp).skeleton(true),
            )
        }
    }
}